<template>
<!-- 	<view class="priceCard">
		<view class="price-Sales">
			<view class="price">
				<text>￥</text>
				<text>{{ equipData[0]?.equip_desplay_price }}</text>
			</view>
			<view class="Sales">
				<text>销量</text>
				<text>{{ equipData[0]?.equip_sale_count }}</text>
			</view>
		</view>
		<text class="title">{{ equipData[0]?.equip_descr }}</text>
		<text class="content">{{ equipData[0]?.equip_name }}</text>
	</view> -->
	<view class="priceCard">
		<view class="price-Sales">
			<view class="price">
				<text>￥</text>
				<text>99.9</text>
			</view>
			<view class="Sales">
				<text>销量</text>
				<text>100</text>
			</view>
		</view>
		<text class="title">水壶</text>
		<text class="content">这是一个商品</text>
	</view>
</template>

<script setup>
	// import { watchEffect } from 'vue';
	const props = defineProps({
		  equipData: {
				type: Array,
				default: () => []
		  }
	});

	// watchEffect(() => {
	//   console.log('父组件传递的', props.products);
	// });
</script>

<style lang="scss" scoped>
	.priceCard{
		width: 100%;
		min-height: 100%;
		background-color: #fff;
		padding: 20rpx 30rpx;
		box-sizing: border-box;
		border-radius: 20rpx;
		.price-Sales{
			width: 100%;
			display: flex;
			align-items: center;
			justify-content: space-between;
			margin-bottom: 20rpx;
			> view{
				display: flex;
				align-items: center;
				
				text{
					font-weight: 400;
					font-size: 36rpx;
				}
			}
			.Sales{
				gap: 8rpx;
				text{
					font-size: 32rpx;
					color: rgba(128, 128, 128, 1);
				}
			}
		}
		.title{
			display: block;
			width: 100%;
			font-size: 30rpx;
			font-weight: 400;
			display: -webkit-box;
			-webkit-box-orient: vertical;
			-webkit-line-clamp: 3;
			overflow: hidden;
			text-overflow: ellipsis;
			margin: 5rpx 0 15rpx 0;
		}
		.content{
			display: block;
			width: 100%;
			font-size: 32rpx;
			font-weight: 400;
			display: -webkit-box;
			-webkit-box-orient: vertical;
			-webkit-line-clamp: 1;
			overflow: hidden;
			text-overflow: ellipsis;
			color: rgba(128, 128, 128, 1);
		}
	}
</style>